package com.ketangpai.controller;

import com.ketangpai.entity.response.BaseResponse;
import com.ketangpai.service.StudentService;
import com.ketangpai.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author jiahao
 * @date 2024/2/18 15:18
 */
@RestController
@RequestMapping("/student")
public class StudentController {
    @Autowired
    StudentService studentService;
    @GetMapping("/getCourses")
    public BaseResponse getCourses(@RequestParam int account) {
        return studentService.getCourses(account);
    }
}
